import http from '../utils/http';

export function getTrain(params) {
    return http.get('/api/hr/train', params);
}

export function addTrain(params) {
    return http.post('/api/hr/train', params);
}

export function updateTrain(params) {
    return http.put(`/api/hr/train/${params.id}`, params);
}

export function delTrain(params) {
    return http.delete(`/api/hr/train/${params.id}`, params);
}

export function getPersonnelDetail(params) {
    return http.get(`/api/hr/personnel/${params.id}`, params);
}

export function getTrainDownload(params, options) {
    return http.get('/api/hr/train/download', params, options);
}


